package com.shiro.dao;


import com.shiro.domain.User;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Repository;

import java.util.List;
@Mapper
@Repository
public interface UserDao {
    User findByName(String Name);
    List<User> queryList();
    @Select("select user.user_id,user.user_name,user.user_password from user where user_id = #{id}")
    User findById(@Param("id") int id);
}
